<?php


namespace App\Http\Controllers\Platform;


use App\Http\Requests\Platform\AuthGroupAccessRequest;
use App\Services\AuthGroupAccessService;
use App\Utils\ResultUtil;

class AuthGroupAccessController
{
    public function add(AuthGroupAccessRequest $request,AuthGroupAccessService $authGroupAccessService){
        $request->scene('add')->validate();
        $data=$request->validationData();
        $authGroupAccessService->add($data);
        return ResultUtil::success();

    }

}
